cmake_minimum_required (VERSION 2.6)
project (GConverter)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules")

find_package(GLM REQUIRED)
find_package(Assimp REQUIRED)

set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
set(EXE model_converter)
set(SRC_FILES src/AssimpImporter.cpp 
	src/BinaryStreamWriter.cpp 
	src/Converter.cpp 
	src/ConverterException.cpp 
	src/Exporter.cpp 
	src/G3DMExporter.cpp 
	src/Importer.cpp 
	src/Material.cpp 
	src/Mesh.cpp 
	src/Model.cpp 
	src/Node.cpp 
	src/Triangle.cpp 
	src/MaterialGroup.cpp 
	src/main.cpp)

add_executable(${EXE} ${SRC_FILES})
target_link_libraries (${EXE} ${Assimp_LIBRARY})

install(TARGETS ${EXE} DESTINATION bin)
